import request from '@/utils/request'
import apiArr from '@/api'

// 获取红包配置
export function redEnvelopesConfig(params) {
  return request({
    url: apiArr.redEnvelopesConfig,
    method: 'get',
    params
  })
}
// 基础配置 其他配置保存
export function redEnvelopesSave(data) {
  return request({
    url: apiArr.redEnvelopesSave,
    method: 'post',
    data
  })
}
export function redEnvelopesLog(params) {
  return request({
    url: apiArr.redEnvelopesLog,
    method: 'get',
    params
  })
}
export function userBalance(params) {
  return request({
    url: apiArr.UserBalance,
    method: 'get',
    params
  })
}
export function block(params) {
  return request({
    url: apiArr.block,
    method: 'get',
    params
  })
}
export function withdrawalApplication(params) {
  return request({
    url: apiArr.withdrawalApplication,
    method: 'get',
    params
  })
}
export function examine(data) {
  return request({
    url: apiArr.examine,
    method: 'post',
    data
  })
}
export function relieveBlock(params) {
  return request({
    url: apiArr.relieveBlock,
    method: 'get',
    params
  })
}
export function inviteRegister(params) {
  return request({
    url: apiArr.inviteRegister,
    method: 'get',
    params
  })
}
export function inviteRegisterExamine(params) {
  return request({
    url: apiArr.inviteRegisterExamine,
    method: 'get',
    params
  })
}
export function inviteRegisterDel(params) {
  return request({
    url: apiArr.inviteRegisterDel,
    method: 'get',
    params
  })
}
